🎖️GitЯра🎖️
.agent_memory/session_context.md 578dd1ca1bf2b7477fef326b900ab3263bb859b2 (578dd1ca) Text, 11.77 KB
Agent Session Context - Meshtastic Android
Dated handover log. Add new entries at the TOP. Format: ## YYYY-MM-DD — <summary>
Capped at the ~5 most recent entries — skim the top entry for current state; you do
not need to read the whole file. When adding an entry pushes the count past ~5, move
the oldest entries to T383838session_context.archive.md (not read by default). The
"Golden Context" block at the bottom is stable across sessions; keep it here.
2026-06-12 — Kotlin 2.4 flag/opt-in cleanup (PR #5786)
• Kotlin 2.4.0 toolchain landed on main via Renovate #5760 (kotlin 2.4.0, mokkery 3.4.1, koin-plugin 1.0.1) + kable 0.43.1 (#5750).
• PR #5786 (branch claude/modest-carson-f0c5c6) removes what 2.4 made redundant: build-logic SHAREDCOMPILERARGS drops T383838-opt-in=kotlin.uuid.ExperimentalUuidApi (Uuid.random/parse stable; only generateV4/V7 still experimental, unused), T383838-opt-in=kotlin.time.ExperimentalTime (Clock/Instant stable since 2.3, no still-experimental time API used), T383838-Xcontext-parameters (stable), T383838-Xannotation-default-target=param-property (compiler reported redundant, ~34 warnings/build); ComposeCompilerConfiguration drops deprecated T383838ComposeFeatureFlag.OptimizeNonSkippingGroups (default behavior, flag removed in Kotlin 2.6). Also stripped per-file @OptIn(ExperimentalUuidApi) from 7 files.
• Verified twice with full baseline + kmpSmokeCompile (1706 tasks, 2756 tests, 0 failures); no warnings referencing removed flags, no new annotation-target warnings.
• Remaining 2.4 adoption candidates (not in this PR): explicit backing fields for the ~96 T383838_state/T383838asStateFlow pairs (wait for IDE 2026.1.4 support), T383838@IntroducedAt for meshtastic-sdk binary compat, Swift export alpha for the iOS goal. Also still TODO: drop kotlin<2.4 renovate holds in MQTTastic + protobufs.
2026-06-12 — Fixed flaky NodeTest.isOnline_usesStrictThresholdBoundary (wall-clock race)
• PR #5779 (targeting main): the test read the clock twice — T383838onlineTimeThreshold() once for its expected value, then again inside the T383838isOnline getter; a one-second wall-clock tick between reads turned the strict-boundary assertion into T383838N+1 > N+1 = false. Seen failing on loaded CI in #5760's shard-core (jvm + androidHostTest).
• Fix: internal T383838Node.isOnline(threshold: Int) overload; the public T383838isOnline property delegates to it. Test pins one threshold for both construction and check, keeping the strict T383838> boundary assertion (no slop widening).
• Verified: T383838:core:model:allTests ×3 (T383838--rerun-tasks) all green; full baseline T383838spotlessApply spotlessCheck detekt assembleDebug test allTests kmpSmokeCompile 1625 tasks 0 failures.
2026-06-10 — Fixed Update Changelog workflow crash (failing on every main push since 2026-06-05)
• PR #5769: T383838.github/workflows/update-changelog.yml died with T383838TAG_NAMES: bad array subscript once v2.7.14 went prod and its T383838-internal.*/T383838-open.* channel tags were cleaned up — zero channel tags means N=0 and T383838${TAG_NAMES[$((N-1))]:-$PROD_TAG} indexes [-1] on an empty array, fatal under T383838bash -e before the T383838:- fallback applies. Replaced with an explicit T383838if (( N > 0 )) branch.
• Second latent bug fixed in the same step: the final T383838{ ... } > /tmp/unreleased-section.md group ended with T383838[ -n ... ] && echo lists; with SECTIONS and CONTRIBUTORS both empty the group (the script's last command) returns 1 and fails the step even though the file is written. Converted to T383838if statements. Previously masked because the prod→HEAD range always had a New Contributors section.
• Verified by extracting the step script from the YAML (10-space block indent stripped, heredoc terminators land at col 0) and running it against the live repo: failing env (prod-only) now exits 0 with correct output; simulated channel tag (N=1) confirms segmented path unchanged. Local BSD-sed chokes on a GNU-sed idiom in T383838generate_notes_api — harmless locally, runner is GNU.
• Push gotcha: both the git credential and gh token lack T383838workflow scope (contents API rejects too) — pushing workflow-file changes works via SSH (T383838git push git@github.com:meshtastic/Meshtastic-Android.git <branch>), which isn't scope-limited.
2026-06-03 — Cluster-marker FATAL: revert shipped map series + in-scope rememberComposeBitmapDescriptor fix
• Reverted ALL google-flavor map changes to before #5684 (per user): restored MapView.kt, NodeClusterMarkers.kt, WaypointMarkers.kt, InlineMap.kt to parent commit bc9f1637; deleted MarkerBitmapRenderer.kt; re-pinned T383838play-services-maps = 20.0.0 in libs.versions.toml. The shipped #5702–#5719 series (Canvas markers + ViewTree-owner band-aids) had lost the info-window popups + interactions.
• Root cause (verified against maps-compose 8.3.0 + android-maps-utils 4.1.1 SOURCE in gradle cache): ONLY T383838Clustering(clusterItemContent=…) crashes — its T383838ComposeUiClusterRenderer builds a detached T383838InvalidatingComposeView with a fake lifecycle owner and NO SavedStateRegistryOwner. T383838MarkerComposable already bakes its icon via the safe in-scope T383838rememberComposeBitmapDescriptor; info windows render with the live marker compositionContext. So InlineMap/NodeTrack/Traceroute were left untouched.
• Fix (NodeClusterMarkers.kt ONLY): icons baked in-scope via T383838rememberComposeBitmapDescriptor(node){ PulsingNodeChip } into a snapshot stateMap; custom T383838private class NodeClusterRenderer : DefaultClusterRenderer assigns them in onBeforeClusterItemRendered/onClusterItemUpdated (bg thread, READ-only — never composes, so the crash class is gone). Native info windows (super sets title/snippet) + onClusterItemInfoWindowClick→navigateToNodeDetails; precision circles drawn from the renderer's own T383838unclusteredItems MutableState (clusterItemDecoration can't fire — T383838ClusterRendererItemState is lib-internal). Strictly better than the elegant-euler Canvas branch — keeps the REAL Compose chip.
• T383838compileGoogleDebugKotlin + T383838spotlessCheck + T383838detekt PASS. NOT committed, NOT device-verified. Next: device-test (clusters show chips + info-window popups + no FATAL), then commit/push.
2026-05-28 — Added comprehensive CarScreenDataBuilder unit coverage
• Created T383838feature/car/src/test/kotlin/org/meshtastic/feature/car/util/CarScreenDataBuilderTest.kt with 533 lines covering signal quality thresholds/boundaries, node UI mapping, node and conversation sorting, local stats fallbacks, uptime formatting, recent message limiting, contact key generation, and constants.
• Restored the T383838MessageSnapshot data class in T383838CarStateCoordinator.kt and re-added T383838recentMessages() plus T383838MAX_CONVERSATION_MESSAGES in T383838CarScreenDataBuilder.kt so the current source matched the requested pure-helper API surface for testing.
• Verified with T383838./gradlew :feature:car:spotlessCheck :feature:car:detekt :feature:car:testFdroidDebugUnitTest --quiet and the requested quiet test command (T383838./gradlew :feature:car:testFdroidDebugUnitTest --quiet 2>&1 | tail -20), both successful.
2026-05-28 — Lowered car min API to 7 and removed dead conversation code
• Changed T383838feature/car manifest T383838androidx.car.app.minCarApiLevel metadata from 8 to 7.
• Guarded T383838HomeScreen.showEmergencyAlert() behind T383838carContext.carAppApiLevel >= 8 and logged unsupported API 7 hosts with Kermit.
• Removed unused T383838ConversationScreen, T383838CarTtsEngine, message snapshot/cache/read-aloud plumbing, and now-unused car reply/read-aloud strings.
• Simplified T383838CarStateCoordinator and T383838CarScreenDataBuilder to match the inline T383838ConversationItem flow.
• Verified with T383838./gradlew :feature:car:spotlessApply :feature:car:spotlessCheck :feature:car:detekt :feature:car:compileFdroidDebugKotlin --quiet 2>&1 | tail -30.
2026-05-28 — Migrated car home messages tab to ConversationItem
• Reworked T383838feature/car T383838HomeScreen messaging tab to build CAL T383838ConversationItem entries instead of browsable T383838Rows, including T383838Person/T383838CarMessage helpers and native reply/mark-read callbacks.
• Removed T383838HomeScreen conversation navigation so the car host owns messaging affordances; T383838ConversationScreen remains on disk for later cleanup phases.
• Added T383838CarStateCoordinator.markAsRead() using T383838packetRepository.clearUnreadCount(...) with Kermit error logging via T383838runCatching.
• Verified with T383838./gradlew :feature:car:spotlessApply :feature:car:spotlessCheck :feature:car:detekt :feature:car:compileFdroidDebugKotlin and the requested quiet compile command (T383838:feature:car:compileFdroidDebugKotlin --quiet 2>&1 | tail -20), both successful.
2026-05-28 — Implemented car conversation shortcuts and avatars
• Added T383838feature/car/.../util/PersonIconFactory.kt to render circular initial avatars using node-derived foreground/background colors for T383838Person and shortcut icons.
• Added T383838feature/car/.../service/ConversationShortcutManager.kt to publish long-lived dynamic conversation shortcuts for favorite nodes and active channels, plus on-demand shortcut creation for notifications.
• Wired T383838MeshtasticCarSession to start/stop shortcut observation on a dedicated session coroutine scope.
• Updated T383838CarNotificationManager to ensure conversation shortcuts exist before posting and to attach both T383838shortcutId and T383838LocusIdCompat to messaging notifications.
• Verified green with T383838./gradlew :feature:car:spotlessCheck :feature:car:detekt --quiet and T383838./gradlew :feature:car:compileFdroidDebugKotlin --quiet 2>&1 | tail -20 after workspace bootstrap.
2026-05-28 — Implemented car local stats tab and extracted screen data builder
• Added T383838CarLocalStats to T383838feature/car UI models and exposed T383838localStatsState from T383838CarStateCoordinator.
• Wired a new HomeScreen T383838Status tab with battery, channel utilization, air utilization, node counts, uptime, and packet TX/RX rows.
• Created T383838feature/car/.../util/CarScreenDataBuilder.kt to centralize pure UI-model mapping helpers for nodes, conversations, local stats, uptime formatting, contact key building, and recent message selection.
• Added the new T383838ic_car_status.xml drawable plus status strings in T383838feature/car/src/main/res/values/strings.xml.
• Cleaned up T383838CarReplyReceiver detekt violations that blocked module validation.
• Ran T383838python3 scripts/sort-strings.py and verified green with T383838./gradlew :feature:car:spotlessApply :feature:car:spotlessCheck :feature:car:detekt :feature:car:compileFdroidDebugKotlin :feature:car:testFdroidDebugUnitTest.
2026-05-28 — Implemented car module Phase 1 messaging wiring fixes
• Replaced T383838CommandSender usage in T383838feature/car T383838CarStateCoordinator with injected T383838SendMessageUseCase, keeping the public T383838sendMessage() API synchronous for UI callbacks while launching the use case on the coordinator scope after message-length validation.
• Updated T383838CarNotificationManager reply and mark-read notification actions with semantic action metadata and T383838setShowsUserInterface(false) for automotive-friendly inline handling.
• Reworked T383838CarReplyReceiver into a T383838KoinComponent that injects T383838SendMessageUseCase and T383838PacketRepository, then sends replies / clears unread counts asynchronously with Kermit error logging.
• Added T383838android:permission="androidx.car.app.CarAppService" to the T383838MeshtasticCarAppService manifest declaration.
• Verified with T383838./gradlew :feature:car:compileFdroidDebugKotlin --quiet after required workspace bootstrap.
Golden Context (stable across sessions)
• Always check T383838.skills/compose-ui/strings-index.txt before reading T383838strings.xml.
• Run T383838python3 scripts/sort-strings.py after adding strings to keep the index organized.
• Always check T383838gh run list before pushing.
• Pre-commit hook T383838scripts/ai-guardrail.sh protects against binary leaks (see script for install).
<!-- Older entries archived in session_context.archive.md -->
Served by rngit 1.5.4 - Generated in 0.03s